import request from '@/utils/request'

// 查询账号信息列表
export function listChatUser(query) {
  return request({
    url: '/business/chatUser/list',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getChatUser(id) {
  return request({
    url: '/business/chatUser/' + id,
    method: 'get'
  })
}

// 新增账号信息
export function addChatUser(data) {
  return request({
    url: '/business/chatUser',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateChatUser(data) {
  return request({
    url: '/business/chatUser',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function delChatUser(id) {
  return request({
    url: '/business/chatUser/' + id,
    method: 'delete'
  })
}
  
// 登录账号信息
export function batchLogin(data) {
  return request({
    url: '/business/chatUser/login',
    method: 'post',
    data: data
  })
}

// 登录账号信息
export function groups(data) {
  return request({
    url: '/business/chatUser/groups',
    method: 'post',
    data: data
  })
}

